#pragma once
#include <iostream>

#include "../../type/ClientType.hpp"
#include "../interface/ClientMessageInterface.hpp"


/**
 * {type:1;clientName:客户端名;序列号:xxx}
 */
class RegisterClientMessage : public ClientMessageInterface {

private:
    static ClientType::MESSAGE_TYPE messageType;




    bool isNull = true;

public:



    /**
     *
     * @param str
     */
    RegisterClientMessage(std::string& str) {

        this->initializationMessage(str);
    }

    ~RegisterClientMessage(){}

    /**
     *
     * @return
     */
    ClientType::MESSAGE_TYPE getType() const override {
        return RegisterClientMessage::messageType;
    }


};


ClientType::MESSAGE_TYPE RegisterClientMessage::messageType = ClientType::MESSAGE_TYPE::REGISTER_CLIENT_MESSAGE;